import httpRequest from "../../../utils/http-request/index.js";

/**
 * 登录
 * @param username
 * @param password
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const login = (username, password, rememberMe) => {
    return httpRequest.post('/v1/sys-user/login', {
        username,
        password,
        rememberMe
    })
}
/**
 * 退出登录
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const logout = () => {
    return httpRequest.get('/v1/sys-user/logout')
}
/**
 * 用户详情
 * @returns {Promise<axios.AxiosResponse<any>>}
 */
export const profile = () => {
    return httpRequest.get('/v1/sys-user/profile')
}
